<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>justify</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>justify</b> -  Justify character array.  </p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>Tj=justify(T,opt)  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>T</b>
        </tt>: a matrix of character string.</li>
      <li>
        <tt>
          <b>Tj</b>
        </tt>: a matrix of character string. the justified result</li>
      <li>
        <tt>
          <b>opt</b>
        </tt>: a character string option with possible values<ul>
          <li>
            <tt>
              <b>'r'  </b>
            </tt>or 'right' for right justification</li>
          <li>
            <tt>
              <b>'l'  </b>
            </tt>or 'left' for left justification</li>
          <li>
            <tt>
              <b>'c'  </b>
            </tt>or 'center' for centering justification</li>
        </ul>
      </li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
      <tt>
        <b>justify</b>
      </tt> justify the column of a matrix of string accdording to
    the given option.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

t=['1234','x','adfdfgdfghfgj'
   '1','354556','dgf'
   'sdfgd','','sdfsf'];

justify(t,'l')
justify(t,'c')

 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="length.htm">
        <tt>
          <b>length</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="part.htm">
        <tt>
          <b>part</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
